<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
	<head>
	    <title>Российские организации зарубежом</title>	
		<%= stylesheet_link_tag "main" %>
		<%= javascript_include_tag :defaults %>
	</head>
	<body>
		<%= flash[:error] %>
		<% if not flash[:error].nil? %>
		<div id="notice">
			<%= flash[:error] %>
		</div>
		<% end %>
	
		<% if not flash[:notice].nil? %>
		<div id="notice">
			<%= flash[:notice] %>
		</div>
		<% end %>
		
		<div id="main_wrapper">
			<div id="auth">
				<br />
				<% if logged_in? %>
					<%= current_user.login %>
					<%= link_to "Выйти", :controller => "account", :action => "logout" %>
				<% else %>
					<%= link_to "Авторизироваться", :controller => "account", :action => "login" %>
				<% end %>
			</div>
		    
			<%= yield %>
			
			<p>
				<hr width="100%" size="0" />
				Copyright &copy; 2007
			</p>
		</div>
	</body>
</html>